package com.ltkj.shop.controller.mobile;

import com.ltkj.common.core.web.controller.BaseController;
import com.ltkj.common.core.web.domain.AjaxResult;
import com.ltkj.shop.service.IShopStoreCentersService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商店自提点移动端接口Controller
 * 
 * @author xupf
 * @date 2023-08-29
 */
@Api(tags = "商店自提点移动端接口")
@RestController
@RequestMapping("/mobile/store/centers")
public class ShopStoreCentersMobileController extends BaseController
{
    @Autowired
    private IShopStoreCentersService shopStoreCentersService;

    /**
     * 根据商店ID查询自提点信息
     */
    @ApiOperation("查询商店和自提点关联列表")
    @GetMapping("/{storeId}")
    public AjaxResult list(@PathVariable("storeId") Long storeId)
    {
        return AjaxResult.success(shopStoreCentersService.selectByStoreId(storeId));
    }
}
